#ifndef WECHATPAYDIALOG_H
#define WECHATPAYDIALOG_H

#include <QDialog>

namespace Ui {
class WechatPayDialog;
}

class WechatPayDialog : public QDialog
{
    Q_OBJECT

public:
    explicit WechatPayDialog(QWidget *parent = nullptr);
    ~WechatPayDialog();
    void onOrderIdReceived(int orderId); //用于接收并保存 orderId

signals:
    void paymentCompleted(int orderId); // 声明 paymentCompleted 信号

private slots:
    void on_pushButton_clicked();

private:
    Ui::WechatPayDialog *ui;
    int orderId;
};

#endif // WECHATPAYDIALOG_H
